package org.brownflat.lighthouse.monitoring.ci.hudson;

import org.brownflat.lighthouse.monitoring.ci.HTTPRequest;

public class HudsonLatestBuildsRequest implements HTTPRequest {

    private String view;

    public HudsonLatestBuildsRequest(String view) {
        this.view = view;
    }

    @Override
    public String getURI() {
        if (view.length() > 0) {
            return "view/" + view + "/rssLatest";
        }
        return "rssLatest";
    }
}
